﻿using System;
using System.Text.RegularExpressions;

namespace 数字字符数字抓取
{
    class Program
    {
        static void Main(string[] args)
        {

            var regexText = @"(\w+):\/\/([^/:]+)(:\d*)?([^#]*)";

            var pattern = @"^(?<a>(\d+))\*(?<b>([a-zA-Z_]{1,}))\*(?<c>(\d+))";
            var str = "23348*ADR*4465425442";

            var matchResult = Regex.Match(str, pattern);
            if (Regex.IsMatch(str, pattern)) 
            {

                Console.WriteLine(matchResult.Groups["a"].Value);
                Console.WriteLine(matchResult.Groups["b"].Value);
                Console.WriteLine(matchResult.Groups["c"].Value);
            }
            foreach (var item in matchResult.Groups) 
            {
                Console.WriteLine(item);
            }
            Console.WriteLine("Hello World!");
        }
    }
}
